package cn.iocoder.yudao.module.system.enums;

/**
 * @author zyk
 */
public enum MaterialType {

    /**
     * 个人素材
     */
    personal("personal"),

    /**
     * 共享素材
     */
    share("share");

    private String type;

    MaterialType(String type){
        this.type = type;
    }

    public static Boolean check(String type){
        for(MaterialType materialType : MaterialType.values()){
            if(materialType.type.equals(type)){
                return true;
            }
        }
        return false;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
